package com.jn.builder.improve;

/**
 * @author 江南大学1033190417
 * @date 2022/4/11 19:31
 */
public class HouseDirector {

    HouseBuilder houseBuilder=null;

    public HouseDirector(HouseBuilder houseBuilder){
        this.houseBuilder=houseBuilder;
    }

    public House constructHouse(){
        houseBuilder.buildBasic();
        houseBuilder.buildWalls();
        houseBuilder.roofed();
        return houseBuilder.buildHouse();
    }
}
